package com.lx.boot.oss.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@Schema(description = "上传文件链接入参")
public class UploadUrlDTO {

    @NotBlank(message = "文件名必填")
    @Schema(description = "文件名")
    private String fileName;

    @Schema(description = "文件路径(包含文件名) 不填时自动生成路径")
    private String path;

    @Schema(description = "contentType 不填时根据文件名生成")
    private String contentType;

    @Schema(description = "链接有效时间", defaultValue = "60")
    private Integer second= 60;
}
